package cn.edu.ujn.bmis.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.edu.ujn.bmis.dao.SysParaDao;
import cn.edu.ujn.bmis.model.SysPara;
import cn.edu.ujn.bmis.service.SysParaManager;

@Component("sysParaManager")
public class SysParaManagerImp implements SysParaManager {

	private SysParaDao sysParaDao;

	public List<SysPara> findSysPara(String hql) {
		return sysParaDao.findSysPara(hql);
	}

	public boolean saveSysPara(SysPara sysPara) {
		return sysParaDao.saveSysPara(sysPara);
	}

	public boolean update(String hql) {
		return sysParaDao.update(hql);
	}

	public boolean update(SysPara sysPara) {
		return sysParaDao.update(sysPara);
	}

	public SysParaDao getSysParaDao() {
		return sysParaDao;
	}

	@Resource(name = "sysParaDao")
	public void setSysParaDao(SysParaDao sysParaDao) {
		this.sysParaDao = sysParaDao;
	}
}
